<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>数据字典-大正</title>
<style type="text/css">
<!--
* {
	padding: 0;
	margin: 0
}

img {
	border: 0;
	display: block;
}

BODY {
	PADDING-RIGHT: 0px;
	PADDING-LEFT: 0px;
	FONT-SIZE: 12px;
	PADDING-BOTTOM: 0px;
	MARGIN: 0px auto;
	COLOR: black;
	LINE-HEIGHT: 150%;
	PADDING-TOP: 10px;
	BACKGROUND-COLOR: white;
	TEXT-ALIGN: center
}

.dis_zzjs_net {
	DISPLAY: block
}

.undis_zzjs_net {
	DISPLAY: none
}

#cntr_zzjs {
	WIDTH: 650px
}

#zzjs {
	CLEAR: both;
	MARGIN-BOTTOM: 16px
}

#zzjs P {
	FLOAT: left;
	LINE-HEIGHT: 21px
}

#zzjs P.top_zzjs {
	FONT-WEIGHT: bold;
	WIDTH: 80px
}

#zzjs P.topzzjs {
	BACKGROUND: #dcdcdc;
	BORDER-LEFT: #f2f2f2 1px solid;
	WIDTH: 80px;
	CURSOR: pointer
}

#zzjs P.top_zzjs_1 {
	BACKGROUND: #c2130e;
	BORDER-LEFT: #f2f2f2 1px solid;
	WIDTH: 80px;
	COLOR: #fff
}

#zzjs #zzjs_tit {
	BORDER-BOTTOM: #c2130e 3px solid;
	HEIGHT: 21px
}

#zzjs P.top_zzjs {
	FONT-WEIGHT: bold;
	WIDTH: 80px
}

#zzjs P.topzzjs {
	BACKGROUND: #dcdcdc;
	BORDER-LEFT: #f2f2f2 1px solid;
	WIDTH: 60px;
	CURSOR: pointer
}

#zzjs P.top_zzjs_1 {
	BACKGROUND: #c2130e;
	BORDER-LEFT: #f2f2f2 1px solid;
	WIDTH: 60px;
	COLOR: #fff
}

#zzjs #zzjs_tit {
	BORDER-BOTTOM: #c2130e 3px solid;
	HEIGHT: 21px
}

#zzjs #zzjs_cnt {
	PADDING-LEFT: 32px;
	BACKGROUND: url(/img/li_20110118zzjs_net.gif) no-repeat 12px 13px;
	LINE-HEIGHT: 26px;
	PADDING-TOP: 7px;
	HEIGHT: 260px;
	TEXT-ALIGN: left
}

#zzjs #zzjs_cnt A {
	COLOR: #666;
	TEXT-DECORATION: none
}

#zzjs #zzjs_cnt A:hover {
	COLOR: #c2130e;
	TEXT-DECORATION: underline
}
-->
</style>
</head>

<body>	
	<DIV id="cntr_zzjs">
	<span style="font-weight: bold; color:#F93; aligh: center; font-size: 20px; width: 650px">客户工费表</span>
	<br><br>	
	<s:form action="custchargeaction?action=querydd">
		<s:select name="clientid" label="用户列表" list="#request.cilist" listKey="id" listValue="name" headerKey="" headerValue="" value="#request.cid"/>
		<s:submit value="查询"></s:submit> 
	</s:form>
	<br><br>
	<s:if test="%{#request.cid!='new'}">
	<table width="100%" border="1">
		<tr>
			<th width="8%" scope="col">序号</th>
			<th width="10%" scope="col">金属成色</th>
			<th width="10%" scope="col">首饰类别</th>
			<th width="8%" scope="col">单件工费</th>
			<th width="8%" scope="col">损耗率</th>
			<th width="8%" scope="col">主石粒数</th>
			<th width="8%" scope="col">副石粒数</th>
			<th width="20%" scope="col">备注</th>
			<th width="20%" scope="col">操作</th>
		</tr>
		<s:iterator value="#request.custchargelist" status="listStat">
			<tr>
				<td><s:property value="#listStat.count" />
				</td>
				<td><s:property value='metalper' />
				</td>
				<td><s:property value="sstype" />
				</td>
				<td><s:property value="unitcharge" />
				</td>
				<td><s:property value="lossrate" />
				</td>
				<td><s:property value="mstoneacount" />
				</td>
				<td><s:property value="sstoneacount" />
				</td>
				<td><s:property value="note" />
				</td>
				<td><a href="modccaction?oid=${ id }">修改</a><br>
					<a href="custchargeaction?action=del&oid=${ id }&cid=${ cid }">删除</a>
				</td>
			</tr>
		</s:iterator>
	</table>
	<BR>
	<div align="right">
		<A href="modccaction?oid=new&cid=${cid}">新增</A>
	</div>
	</s:if>
	</DIV>
</body>
</html>
